package com.eagletsoft.mmproj.ui;

import android.content.Context;
import android.graphics.Bitmap;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class TitleAndImageView extends LinearLayout {

	TextView title;
	ImageView image;
	
	public TitleAndImageView(Context context) {
		super(context);
		setOrientation(LinearLayout.HORIZONTAL);
		
		LayoutParams lp = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT);
        //lp.weight = 1;
        
        //title = new TextView(context);
        //addView(title, lp);
        
        image = new ImageView(context);
        addView(image,lp);
	}
	
	public void setTitle(String txtTitle){
		//this.title.setText(txtTitle);
	}
	
	public void setImage(int resId){
		image.setImageResource(resId);
	}

}
